package com.demo.userprofile.component.service;

import org.springframework.stereotype.Component;

import com.demo.userprofile.component.vo.DolphinSchedulerProject;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;

import retrofit2.http.GET;
import retrofit2.http.Header;

/**
 * DolphinScheduler API接口调用示例
 *
 * @author userprofile_demo
 */
@Component
@RetrofitClient(baseUrl = "${dolphinscheduler.api.url}")
public interface DolphinSchedulerHttpApi {

    // 查询获取所有项目列表
    @GET("/dolphinscheduler/projects/list")
    DolphinSchedulerProject getAllProjects(@Header("token") String token);
}
